package com.bootdo.kaoqin.dao;

import com.bootdo.kaoqin.domain.KaoqinConfig;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-09-27 20:53:35
 */
@Mapper
public interface KaoqinConfigDao {

	KaoqinConfig get(Long id);
	
	List<KaoqinConfig> list(Map<String,Object> map);

	//SELECT * from hjb_kaoqin_config where  start_time <= '21:32:00'  and   end_time >=  '21:32:00' and user_id = 151
	List<KaoqinConfig> listByNowTime(@Param("nowTime")String nowTime,@Param("userId") Long userId,@Param("groupId") Long groupId);

	List<KaoqinConfig>  listByNowTimeNoEnd (@Param("nowTime")String nowTime,@Param("userId") Long userId,@Param("groupId") Long groupId);

	int count(Map<String,Object> map);
	
	int save(KaoqinConfig kaoqinConfig);
	
	int update(KaoqinConfig kaoqinConfig);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
